home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 19 code / SimpliFace_V2 / Sources / ObjModelEvents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-15  |  1.6 KB  |  80 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ObjModelEvents.h
  3.  
  4.     Contains:    Apple Event handlers interface
  5.  
  6.  
  7.     Developed by:
  8.  
  9.     Paul G Smith (commstalk hq & Full Moon Software, Inc)
  10.  
  11.     you can leave messages at (UK): 0727 844232; (US): 408 253 7199
  12.     BUT I prefer to be contacted by e-mail
  13.     AppleLink:     COMMSTALK.HQ
  14.     Internet:     COMMSTALK.HQ@applelink.apple.com
  15.  
  16.     "SimpliFace2" Sample code to accompany develop article
  17.     on techniques for controlling script inheritance.
  18.     
  19.     
  20.  
  21.  
  22.     Apple Event handlers for SimpliFace2
  23.  
  24. */
  25.  
  26. #ifndef __AEOMEVENTS__
  27. #define __AEOMEVENTS__
  28.  
  29.  
  30. #ifndef __APPLEEVENTS__
  31. #include "AppleEvents.h"
  32. #endif
  33.  
  34. #ifndef __PASCALSTRING__
  35. #include <PascalString.h>
  36. #endif
  37.  
  38.  
  39. // installation
  40.  
  41. pascal OSErr InstallEventHandlers(void);
  42.  
  43. pascal OSErr DeInstallEventHandlers(void);
  44.  
  45.  
  46. OSErr GetCurrentAppFileSpec(short *vRefNum, long *dirID, StringPtr fileName);
  47.  
  48. void GetCurrAppName(CStr255& appName);
  49.  
  50.  
  51. // special Apple Events
  52.  
  53. static    pascal OSErr GetAETEAEvtHandler (AppleEvent *theEvent, 
  54.                                         AppleEvent *theReply, 
  55.                                         long theRefCon);
  56.  
  57.  
  58. // object model Apple Events
  59.     
  60. static    pascal OSErr StdAEvtPreHandler (AppleEvent *theEvent, 
  61.                                         AppleEvent *theReply, 
  62.                                         long theRefCon);
  63.     
  64. static    pascal OSErr RqdAEvtHandler       (AppleEvent *theEvent, 
  65.                                         AppleEvent *theReply, 
  66.                                         long theRefCon);
  67.  
  68. static    pascal OSErr StdAEvtHandler       (AppleEvent *theEvent, 
  69.                                         AppleEvent *theReply, 
  70.                                         long theRefCon);
  71.  
  72. static  pascal Boolean StdIdleFunction (EventRecord *theEventRecord,
  73.                                         long *sleepTime,
  74.                                         RgnHandle *mouseRgn);
  75.  
  76.  
  77. // -------------------------------------------------------
  78.  
  79. #endif
  80.